if (window.location.pathname.startsWith("/lm/")) {
  window.__TAURI__.core.invoke("navigate", {
    href: document.evaluate(
      "(./li[1]/a[1])/@href",
      document.getElementById("content"),
      null,
      XPathResult.STRING_TYPE,
      null
    ).stringValue,
  });
} else {
  const checkExist = () => {
    if (document.querySelector("button.vjs-fullscreen-control")) {
      document.querySelector("button.vjs-fullscreen-control").click();
    } else {
      setTimeout(checkExist, 500);
    }
  };
  checkExist();
}
